﻿using Microsoft.AspNetCore.Routing.Matching;
using PeiYue.Common.Helper;
using System;
using System.Collections.Generic;
using System.Text;

namespace PeiYue.Model.Dto.Tms
{
    public class SearchRouterResponseDto : BaseResponseDto
    {
        /// <summary>
        /// 仓库id
        /// </summary>
        public long wh_id { get; set; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        public string wh_name { get; set; }
        /// <summary>
        /// 线路名称
        /// </summary>
        public string names { get; set; }
        /// <summary>
        /// 线路编码
        /// </summary>
        public string codec { get; set; }
        /// <summary>
        /// 线路类型
        /// </summary>
        public int type { get; set; }
        /// <summary>
        /// 线路类型
        /// </summary>
        public string type_text { get { return EnumHelper.GetEnumDesc<CommonEnum.RouterType>(type); } }
        /// <summary>
        /// 今日任务状态
        /// </summary>
        public int task_status { get; set; }
        /// <summary>
        /// 今日任务状态
        /// </summary>
        public string task_status_text { get { if (task_status > 0) return "已分配"; else return "未分配"; } }
    }
}
